<%--
  Created by IntelliJ IDEA.
  User: jshand
  Date: 2022/12/2
  Time: 9:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<%--用户表格--%>

<%=request.getAttribute("list")%>

<form action="${pageContext.request.contextPath}/userlist" method="post">
    用户名 <input type="text" name="username" placeholder="请输入查询条件" value="${user.username}"> <input type="submit" value="查询" />
</form>




<table cellspacing="0" cellpadding="0" border="1" width="100%">
    <tr>
        <td>username</td>
        <td>password</td>
        <td>realname</td>
        <td>telephone</td>
    </tr>


  <c:forEach items="${userList}" var="user" >
    <tr>
        <td>${user.username}</td>
        <td>${user.password}</td>
        <td>${user.realname}</td>
        <td>${user.telephone}</td>
    </tr>
  </c:forEach>

</table>



</body>
</html>
